<%@ page contentType="text/html; charset=UTF-8" language="java"%>
<%@taglib prefix="s" uri="/struts-tags" %>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<link rel="stylesheet" href="/css/default.css" type="text/css" />
<title>无标题文档</title>
</head>
<body>
<div class="navi_text">
<img src="/images/litt.jpg"/><span class="navi_text">当前位置:佣金查询->3G佣金明细</span>
</div>
<table width="100%" border="0" cellpadding="0" cellspacing="0">
  <tr>
    <td width="17" valign="top" background="/images/mail_leftbg.gif"><img src="/images/left-top-right.gif" width="17" height="29" /></td>
    <td valign="top" background="/images/content-bg.gif"><table width="560px" height="31" border="0" cellpadding="0" cellspacing="0" class="left_topbg" id="table2">
      <tr>
        <s:iterator id="comm_3g" value="#session.COMM_3G">
           <s:if test="#request.curCommId.equals(#comm_3g.commId)">
             <td height="31" width="85px"><div class="titlebt"><a href='<s:property value="#comm_3g.commAction"/>'><s:property value="#comm_3g.commAlias"/></a></div></td>
           </s:if>
           <s:else>
             <td height="31" width="85px"><div class="titlebt_noactive"><a href='<s:property value="#comm_3g.commAction"/>'><s:property value="#comm_3g.commAlias"/></a></div></td>
           
           </s:else>
        </s:iterator>
        <td></td>
      </tr>
    </table></td>
    <td width="16" valign="top" background="/images/mail_rightbg.gif"><img src="/images/nav-right-bg.gif" width="16" height="29" /></td>
  </tr>
   <s:form  name="detail3G" action="detail3G" namespace="/commision" method="POST" theme="simple" >
   <tr>
    <td valign="middle" background="/images/mail_leftbg.gif">&nbsp;</td>
    <td valign="top" bgcolor="#F7F8F9" align="left">
      请选择要查询的月份：<select id="acctMonth" name="acctMonth" onChange="detail3G.submit();"> 
         <script>
            var  isdate= new Date(); 
            var year=isdate.getFullYear();//获取当前年
            var  month=isdate.getMonth()+1;//获取当前月
         for(var i=6;i>0;i--){
         if(month==0){
         year--;
         month=12;
         }
		 if (month<10){
          document.write("<option value='"+year+"-"+"0"+month+"'>"+year+"-"+"0"+month);
		 }else{
			 document.write("<option value='"+year+"-"+month+"'>"+year+"-"+month);
		 }
         month--;
         }
		 document.detail3G.acctMonth.value='<s:property value="acctMonth"/>';
         </script>
       </select>
       <input type="hidden" name="curCommId" value='<s:property value="#request.curCommId" />'/>
    
         </td>
    <td background="/images/mail_rightbg.gif">&nbsp;</td>
  </tr>
  <tr>
    <td valign="middle" background="/images/mail_leftbg.gif">&nbsp;</td>
    <td valign="top" bgcolor="#F7F8F9" align="center">
    <table width="1200px" bordercolor="#cccccc" cellpadding="0" cellspacing="0" border="0" style=" margin-top:0px">
      <tr>
        <td>
        <div class="remarks">
        <ul>
          <s:property value="commRemarks" escape="false"/>
        </ul>
        </div>
        </td>
      </tr>
    </table>
    <div class="content_table_detail">
      <table width="1200px" bordercolor="#cccccc" cellpadding="0" cellspacing="0" border="0">
         <tr><td class="table_header" width="80px">月份</td>
         <td  class="table_header"width="200px">结算规则</td>
         <td  class="table_header"width="120px">号码</td>
         <td class="table_header" width="120px">开户时间</td>
         <td class="table_header" width="200px">套餐名</td>
         <td class="table_header" width="120px">状态</td>
         <td class="table_header" width="80px">佣金</td>
         <td class="table_header" width="60px">是否3无</td>
         <td class="table_header" width="60px">流量(M)</td>
         <td class="table_header" width="60px">开户预存</td>
         <td class="table_header" width="60px">分成比例</td>
         <td class="table_header" width="60px">期数</td>
         </tr>
         <s:iterator value="curList" status="count" >
         <s:if test="#count.odd">
          <tr ><td class="table_row_odd"><s:property value="acctMonth" /></td>
               <td class="table_row_odd"><s:property value="commRule" /></td>
               <td class="table_row_odd"><s:property value="serialNumber" /></td>
               <td class="table_row_odd"><s:property value="openTime" /></td>
               <td class="table_row_odd"><s:property value="productName" /></td>
               <td class="table_row_odd"><s:property value="status" />
               <td class="table_row_odd"><s:property value="yj" /></td>
               <td class="table_row_odd"><s:property value="flag3W" /></td>
               <td class="table_row_odd"><s:property value="gprs" /></td>
               <td class="table_row_odd"><s:property value="openYcyf" /></td>
               <td class="table_row_odd"><s:property value="commPer" /></td>
               <td class="table_row_odd"><s:property value="commQishu" /></td>
          </tr>
         </s:if>
         <s:else>
          <tr ><td class="table_row_even"><s:property value="acctMonth" /></td>
               <td class="table_row_even"><s:property value="commRule" /></td>
               <td class="table_row_even"><s:property value="serialNumber" /></td>
               <td class="table_row_even"><s:property value="openTime" /></td>
               <td class="table_row_even"><s:property value="productName" /></td>
               <td class="table_row_even"><s:property value="status" />
               <td class="table_row_even"><s:property value="yj" /></td>
               <td class="table_row_even"><s:property value="flag3W" /></td>
               <td class="table_row_even"><s:property value="gprs" /></td>
               <td class="table_row_even"><s:property value="openYcyf" /></td>
               <td class="table_row_even"><s:property value="commPer" /></td>
               <td class="table_row_even"><s:property value="commQishu" /></td>
          </tr>
         </s:else>
        </s:iterator>
        
      </table>
      <table width="800px" bordercolor="#cccccc" cellpadding="0" cellspacing="0" border="0">
      <tr>
        <td width="300px"></td>
        <td width="100px">共<s:property value="maxPage"/>页<s:property value="totalCount"/>条记录</td>
        <td><s:submit action="xlsdetail3G" value="导出" /></td>
        <td><s:submit action="firstPagedetail3G" value="首页" /></td>
        <td><s:submit action="prioPagedetail3G" value="前一页" /></td>
        <td><s:textfield name="currPage" size="4" maxlength="4"/></td>
        <td><s:submit action="goToPagedetail3G" value="前往" /></td>
        <td><s:submit action="nextPagedetail3G" value="后一页" /></td>
        <td><s:submit action="lastPagedetail3G" value="最后一页"/></td>
      </tr>
      </table>
    </div>
    </td>
    <td background="/images/mail_rightbg.gif">&nbsp;</td>
  </tr>
   </s:form>
   <tr >
    <td valign="bottom" background="/images/mail_leftbg.gif"><img src="/images/buttom_left2.gif" width="17" height="17" /></td>
    <td background="/images/buttom_bgs.gif"><img src="/images/buttom_bgs.gif" width="17" height="17"></td>
    <td valign="bottom" background="/images/mail_rightbg.gif"><img src="/images/buttom_right2.gif" width="16" height="17" /></td>
   </tr>
</table>
</body>
</html>